package com.starsoft.frame.base.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.starsoft.frame.base.bean.BaseJob;
import com.starsoft.frame.base.dao.JobDao;
import com.starsoft.frame.core.orm.PageObject;
import com.starsoft.frame.core.service.BaseService;

@Service
public class JobService extends BaseService{
	
	@Autowired
	JobDao jobDao;
	
	public void save(BaseJob job){
		jobDao.saveOrUpdate(job);
	}
	
	public void delete(BaseJob job){
		jobDao.delete(job);
	}
	
	public List<BaseJob> getAll(){
		return jobDao.getAll();
	}
	
	public Map<String, Object> pageQuery(PageObject po){
		return jobDao.pageQuery(po);
	}
}
